import tkinter
import main

window = tkinter.Tk()


def my_click(dd):
    main.mainUI()


btn = tkinter.Button(window, text='click', command=lambda: my_click('kkk'))
btn.pack()

window.mainloop()